#!/bin/bash
#从产品库拉取jar包进行更新并自动重启
./run.sh stop
mv xxxxxx.jar bak/xxxxxx_`date +%Y-%m-%d_%H:%M:%S`.jar
sshpass -p password scp product@{domain}:/home/product/xxxx.jar /home/xxxx/
./run.sh restart
